package com.cc.springboot_test.bean.constants;

public interface Code {
    String CODE = "code";
    String MSG = "msg";

    // 成功返回
    String SUCCESS_200 = "200";
    String SUCCESS_201 = "201";
    String SUCCESS_202 = "202";
    String SUCCESS_203 = "203";
    String SUCCESS_204 = "204";
    String SUCCESS_205 = "205";

    // 初始化
    String INIT_000 = "000";

    // 服务异常
    String ERROR_500 = "500";
    String ERROR_501 = "501";
    String ERROR_502 = "502";
    String ERROR_503 = "503";
    String ERROR_504 = "504";

    // 业务异常
    String ERROR_600 = "600";
    String ERROR_601 = "601";
    String ERROR_602 = "602";
    String ERROR_603 = "603";
    String ERROR_604 = "604";
    String ERROR_605 = "605";
    String ERROR_606 = "606";
    String ERROR_607 = "607";
    String ERROR_608 = "608";
    String ERROR_609 = "609";
    String ERROR_610 = "610";

    // 数据库异常
    String ERROR_700 = "700";
    String ERROR_701 = "701";
    String ERROR_702 = "702";
    String ERROR_703 = "703";
    String ERROR_704 = "704";

    // 参数异常
    String ERROR_800 = "800";
    String ERROR_801 = "801";
    String ERROR_802 = "802";
    String ERROR_803 = "803";
    String ERROR_804 = "804";

    // 超时异常
    String ERROR_998 = "998";
    String ERROR_999 = "999";

}
